package com.eascs.workflow.sequence.dubbo;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.dubbo.config.annotation.Service;
import com.eascs.workflow.common.service.sequence.SequenceService;
import com.eascs.workflow.sequence.service.SequenceServer;

@Service
public class SequenceServiceDubboImpl implements SequenceService{

	@Autowired
	private SequenceServer sequenceServer;
	
	@Override
	public String getSeq(String type, int len, String prefix) {
		return sequenceServer.getSeq(type, len, prefix);
	}

	@Override
	public String getSeq(String type, int len) {
		return sequenceServer.getSeq(type, len, null);
	}

}
